home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Gold Collection / Software Vault - The Gold Collection (American Databankers) (1993).ISO / cdr49 / splint.zip / SPLINT.H < prev   
C/C++ Source or Header  |  1993-05-19  |  774b  |  43 lines

  1. /* global definitions and tables */
  2.  
  3. #include <stdio.h>
  4.  
  5. #ifdef __TURBOC__
  6. #include <alloc.h>
  7. #include <stdlib.h>
  8. #include <dir.h>
  9. #endif
  10. #ifdef BSD
  11. #include <malloc.h>
  12. #define far 
  13. #endif
  14. #ifdef MSDOS
  15. #include <malloc.h>
  16. #include <direct.h>
  17. #include <stdlib.h>
  18. #endif
  19. #include <sys/types.h>
  20. #include <string.h>
  21. #include <sys/stat.h>
  22.  
  23. /* constants for splay algorithm */
  24.  
  25. #define CHAR_RANGE (255)
  26. #define EOF_CODE (CHAR_RANGE + 1)
  27. #define MAXCHAR (EOF_CODE + 1)
  28. #define SUCCMAX (MAXCHAR + 1)
  29. #define TWICEMAX (2 * MAXCHAR + 1)
  30. #define ROOT 1
  31.  
  32. /* Markov model states */
  33. /* Needs ~= 140kbytes heap to alloc properly */
  34.  
  35. #define STYLE_ID 6
  36. #define MAXSTATE 64 /* 2 << 6 */
  37.  
  38. /* global variables */
  39.  
  40. extern char spl_passwd[];
  41.  
  42. /* end */
  43.